home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
a_utils
/
_archvrs
/
unix
/
pkzip19
/
msdos
/
makefile.bor
< prev
next >
Wrap
Makefile
|
1994-02-20
|
4KB
|
149 lines
# Makefile for Zip, ZipCloak, ZipNote and ZipSplit for
# Borland (Turbo) C++ 1.0 or 2.0.
# Warning: this file is not suitable for Turbo C 2.0. Use zip.prj instead.
# To use, do "make -fmakefile.bor"
# WARNING: the small model is not supported. You must use the compact model.
# Add -DSMALL_MEM or -DMEDIUM_MEM to CFLAGS if you wish to reduce the memory
# requirements. Add -DNO_ASM to CFLAGS and remove match.obj from OBJI if
# you do not have tasm.
CRYPTO=
CLOAK=
CRFLAG=
# *** For encryption version, remove the # at the front of next 3 lines ***
#CRYPTO=crypt.obj
#CLOAK=zipcloak.exe
#CRFLAG=-DCRYPT
# ------------- Turbo C++, Borland C++ -------------
MODEL=-mc
#CFLAGS=-w -w-eff -w-def -w-sig -w-cln -a -d -G -O -Z $(MODEL) $(CRFLAG)
CFLAGS=-O2 -w -w-cln $(MODEL) $(CRFLAG)
UTILFLAGS=-DUTIL $(CFLAGS) -o
CC=bcc
LD=bcc
# replace bcc with tcc for Turbo C++ 1.0
LDFLAGS=$(MODEL)
AS=tasm
ASFLAGS=-ml -t -DDYN_ALLOC -DSS_NEQ_DS
# ------------- Common declarations:
STRIP=rem
# If you don't have lzexe, get it. Then define:
#STRIP=lzexe
# Or if you've registered PKLITE, then define:
#STRIP=pklite
# This makes a big difference in .exe size (and possibly load time)
# ------------- Used by install rule
# set BIN to the directory you want to install the executables to
BIN = c:\util
# variables
OBJZ = zip.obj zipfile.obj zipup.obj fileio.obj util.obj globals.obj $(CRYPTO)
OBJI = deflate.obj trees.obj bits.obj match.obj
# remove match.obj if you do not have tasm
OBJU = zipfile_.obj zipup_.obj fileio_.obj util_.obj globals.obj
OBJN = zipnote.obj $(OBJU)
OBJC = zipcloak.obj $(OBJU) crypt_.obj
OBJS = zipsplit.obj $(OBJU)
ZIPS = zip.exe zipnote.exe zipsplit.exe $(CLOAK)
zips: $(ZIPS)
zip.obj: zip.h ziperr.h tailor.h revision.h zip.c
$(CC) -c $(CFLAGS) $*.c
zipfile.obj: zip.h ziperr.h tailor.h zipfile.c
$(CC) -c $(CFLAGS) $*.c
zipup.obj: zip.h ziperr.h tailor.h revision.h zipup.c
$(CC) -c $(CFLAGS) $*.c
fileio.obj: zip.h ziperr.h tailor.h fileio.c
$(CC) -c $(CFLAGS) $*.c
util.obj: zip.h ziperr.h tailor.h util.c
$(CC) -c $(CFLAGS) $*.c
globals.obj: zip.h ziperr.h tailor.h globals.c
$(CC) -c $(CFLAGS) $*.c
deflate.obj: zip.h ziperr.h tailor.h deflate.c
$(CC) -c $(CFLAGS) $*.c
trees.obj: zip.h ziperr.h tailor.h trees.c
$(CC) -c $(CFLAGS) $*.c
bits.obj: zip.h ziperr.h tailor.h bits.c
$(CC) -c $(CFLAGS) $*.c
crypt.obj: zip.h ziperr.h tailor.h crypt.c
$(CC) -c $(CFLAGS) $*.c
zipcloak.obj: zip.h ziperr.h tailor.h revision.h zipcloak.c
$(CC) -c $(CFLAGS) $*.c
zipnote.obj: zip.h ziperr.h tailor.h revision.h zipnote.c
$(CC) -c $(CFLAGS) $*.c
zipsplit.obj: zipsplit.c zip.h ziperr.h tailor.h revision.h
$(CC) -c $(CFLAGS) $*.c
zipfile_.obj: zipfile.c zip.h ziperr.h tailor.h
$(CC) -c $(UTILFLAGS)$* zipfile.c
zipup_.obj: zipup.c zip.h ziperr.h tailor.h
$(CC) -c $(UTILFLAGS)$* zipup.c
fileio_.obj: fileio.c zip.h ziperr.h tailor.h
$(CC) -c $(UTILFLAGS)$* fileio.c
util_.obj: util.c zip.h ziperr.h tailor.h
$(CC) -c $(UTILFLAGS)$* fileio.c
crypt_.obj: crypt.c zip.h ziperr.h tailor.h
$(CC) -c $(UTILFLAGS)$* crypt.c
match.obj: match.asm
$(AS) $(ASFLAGS) match;
# we must cut the command line to fit in the MS/DOS 128 byte limit:
zip.exe: $(OBJZ) $(OBJI)
echo $(OBJZ) > zip.rsp
echo $(OBJI) >> zip.rsp
$(LD) $(LDFLAGS) @zip.rsp
del zip.rsp
$(STRIP) zip.exe
zipcloak.exe: $(OBJC)
echo $(OBJC) > zipc.rsp
$(LD) $(LDFLAGS) @zipc.rsp
del zipc.rsp
$(STRIP) zipcloak.exe
zipnote.exe: $(OBJN)
echo $(OBJN) > zipn.rsp
$(LD) $(LDFLAGS) @zipn.rsp
del zipn.rsp
$(STRIP) zipnote.exe
zipsplit.exe: $(OBJS)
echo $(OBJS) > zips.rsp
$(LD) $(LDFLAGS) @zips.rsp
del zips.rsp
$(STRIP) zipsplit.exe
install: $(ZIPS)
copy /b *.exe $(BIN)
clean:
del *.obj
del *.exe